package multiplayer.lan;

public class RoBotCleanerServers implements Runnable{
	private static long MS_LATE=4000;
	private boolean terminate=false;
	private ServersOnAir soa;
	public RoBotCleanerServers(ServersOnAir soa) {
		this.soa=soa;
	}
	public void setTerminate(boolean enable) {
		this.terminate = enable;
	}
	
	@Override
	public void run() {
		while(!terminate){
			try {
				soa.clearServers();
				Thread.sleep(MS_LATE);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
